﻿using System.ComponentModel;
using System.Collections.ObjectModel;

namespace StockholmsStad.Windows.UI.Modules.Maintenance.BusinessEntities
{
    public class ScheduledMonths : INotifyPropertyChanged
    {
        public ScheduledMonths()
        {
            PropertyChanged += OnPropertyChangedEvent;
        }

        private ObservableCollection<ScheduledMonth> months;
        public ObservableCollection<ScheduledMonth> Months
        {
            get { return months; }
            set
            {
                if (!value.Equals(months))
                {
                    months = value;
                    PropertyChanged(this, new PropertyChangedEventArgs("Months"));
                }
            }
        }

        private static void OnPropertyChangedEvent(object sender, PropertyChangedEventArgs e)
        {
        }

        #region INotifyPropertyChanged Members

        public event PropertyChangedEventHandler PropertyChanged;

        #endregion
    }
}
